﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using RBAC.Service.Dto;

namespace RBAC.Service.Dto
{
    [DataContract]
    public class RoleDto : BaseDto
    {
        [DataMember]
        public int? ProjectId { get; set; }
        //string
        private String _rolecode;
        [DataMember]
        public String RoleCode { get { return string.IsNullOrEmpty(_rolecode) ? null : _rolecode.Trim(); } set { _rolecode = value; } }

        //string
        private String _rolename;
        [DataMember]
        public String RoleName { get { return string.IsNullOrEmpty(_rolename) ? null : _rolename.Trim(); } set { _rolename = value; } }

        //string
        private String _description;
        [DataMember]
        public String Description { get { return string.IsNullOrEmpty(_description) ? null : _description.Trim(); } set { _description = value; } }

        //[DataMember]
        //public DateTime CreateDate { get; set; }

        //Pickup List
        //[DataMember]
        //public int RoleStatus { get; set; }
        /*[DataMember]
        public List<Master Detail?Dto> Permissions { get; set; }*/
    }

}